package com.yuhs.zixing.study.thread.juc.code001;

/**
 * @description 0
 * @author: yuhs
 * @date 2021/11/16 8:13 下午
 */
public class C01_WhatIsThread {
    private static class T1 extends Thread {

        @Override
        public void run() {
            for (int i = 0; i < 10; i++) {
                System.out.println(Thread.currentThread().getName() + "  " + i);
            }
        }
    }

    public static void main(String[] args) {
        // 线程启动
        new T1().start();
        // 方法调用
        new T1().run();
    }
}
